Set Title in ErrorBox

Hello All,

I would like to set the title of the errorBox provided by DXL. Currently it is "DOORS". I want to customize it. Is it possible?

Isnt there a possibility to customize the message boxes like the errorBox/infoBox/warningBox in DXL?

Irfan
Irfan_Jamal - Tue Jun 08 06:11:59 EDT 2010

Re: Set Title in ErrorBox
Mathias Mamsch - Tue Jun 08 12:12:56 EDT 2010

In DOORS 9.2 you can use infoBox (string, string) which (at least my guess is so) would let you specify a title for the box (same for warningBox, errorBox). In the lower versions this seems not to be possible (I was surprised too), probably the reason why they added it to DOORS 9.2.

Anyway it should be easy to make your own messageBox with a label, some buttons and a dialog box.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Set Title in ErrorBox
llandale - Tue Jun 08 13:59:48 EDT 2010

I don't know how to get that big red X to appear inside a dialog, but you can indeed create a simple dialog box with your message and title:

void    applyClose(DB dbXX)
{     if (null dbXX) return
        release(dbXX)
}
 
void    btnClose(DBE dbeXX)
{     if (null dbeXX) return
        DB db = getParent(dbeXX)
        applyClose(db)
}
 
void    DisplayError(string Title, Message)
{
        DB      db      = create(Title, styleCentered | styleFixed)
        DBE     dbe0    = label(db, "AAAAAAAA")
                beside (db)
        DBE     dbeM    = label(db, Message)
        DBE     dbe1    = label(db, "AAAAAAAA")
                left   (db)
        DBE     dbe2    = label(db, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
        DBE     dbe3    = label(db, "AAAAAAAA")
                beside (db)
                          button(db, "OK", btnClose)
        close(db, false, applyClose)
        realize(db)
        set(dbe0, "")
        set(dbe1, "")
        set(dbe2, "")
        set(dbe3, "")
        block(db)
}


OK, so it turned out not to be so simple after all.

 

 

  • Louie